package com.yc.configs;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Random;

@Configuration
public class AppConfig {
    @Value("${web.pagesize}")
    private int pageSize;
    @Value("${web.sorttype}")
    private String sorttype;
    @Bean
    public Random r(){
        System.out.println("pageSize="+pageSize);
        System.out.println("sorttype="+sorttype);
        return new Random();
    }
}
